<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>黑白键</title>
    <!-- <link rel="stylesheet" href="./css/normalize.css"> -->
    <link rel="stylesheet" href="./css/block.css">

</head>

<body>
    <div class="main" id="main">
        <div class="block_box" id="block_box"></div>
        <div class="cover" id="cover">
            <h1>别踩白块儿</h1>
            <span id="start">开始</span>
        </div>
    </div>

    <script src="./js/blocks.js"></script>
    <script>
        var block_box = document.getElementById("block_box");
        var block = new Block(block_box);
        block.init();

        var cover = document.getElementById("cover");
        var start = document.getElementById("start");
        start.onclick = function () {//单击开始
            block.start();//调用方法开始游戏
            cover.style.display = 'none';//隐藏元素
        }
    </script>
</body>

</html>